package com.atguigu.spzx.cart;

import com.atguigu.anno.EnableGetCurrentUserAuthCheck;
import com.atguigu.anno.EnableGlobalExceptionHandler;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.cloud.openfeign.EnableFeignClients;

@SpringBootApplication(exclude = {DataSourceAutoConfiguration.class})
@EnableFeignClients(basePackages = "com.atguigu.product.feign")
// 开启拦截器获取当前用户信息
@EnableGetCurrentUserAuthCheck
@EnableGlobalExceptionHandler
public class CartApplication {
    public static void main(String[] args) {
        SpringApplication.run(CartApplication.class, args);
    }
}
